package com.poker.monitor.ocr;

import java.io.IOException;

public class OcrException extends IOException {
    private final ErrorType errorType;

    public OcrException(ErrorType errorType, String message) {
        super(message);
        this.errorType = errorType;
    }

    public ErrorType getErrorType() {
        return errorType;
    }

    public enum ErrorType {
        NETWORK_ERROR,
        API_ERROR,
        INVALID_RESPONSE,
        TIMEOUT,
        UNKNOWN_ERROR
    }
}